﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ControlPoint.ControlAPI {
    public class ScriptLoaderMemoryString   : EezeeScript.ScriptLoader
    {
        #region Public Methods

        public List<String> LoadScript(String strScript)
        {
            try
            {

                char[] delimiters = new char[] { '\r', '\n' };


                List<String> listStatements = new List<string>(strScript.Split(delimiters,
				                                                StringSplitOptions.RemoveEmptyEntries));
                return listStatements;
            }
            catch (Exception exception)
            {
                throw new Exception("Error while reading script file", exception);
            }
        }

        #endregion
    }
}
